{include file="admin/public/header" /}
<form role="form" method="post" action="{:url('ajax/setting/')}" class ="cmzForm">
<style type="text/css">
    .tab-pane{padding-top: 20px;padding: 20px;}
</style>
    <div class="row">
    <div class="col-sm-12">
    <div class="tabs-container">
            <div style="clear:both;height:20px"></div>
            <div class="tab-content">
                <div id="tab-1" class="tab-pane active">
                     <div class="ibox float-e-margins">
                            <div class="row">
                                <div class="col-sm-12 b-r">
                                  <div class="ibox-title">
                        <h5>分类处理</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link" href="{:url('admin/category/index')}" >
                                <i class="fa fa-chevron-up"></i>
                                分类列表
                            </a>
                            <a class="collapse-link" href="{:url('admin/category/edit')}" >
                                <i class="fa fa-chevron-up"></i>
                                添加分类
                            </a>
                            
                        </div>
                    </div>
                       <div class="ibox-content">
                                     
                                    <div class="aw-content-wrap">
                                        <div class="mod">
                                            <div class="mod-body tab-content">
                                                <div class="tab-pane active" id="list">
                                                    <form id="batchs_form" action="admin/ajax/question_manage/" method="post">
                                                   
                                                    <div class="table-responsive">
                                                    <?php if ($list) { ?>
                                                        <table class="table table-striped">
                                                            <thead>
                                                                <tr>
                                                                    
                                                                    <th>id</th>
                                                                    <th>sort</th>
                                                                    <th>标题</th>
                                                                    <th>操作</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <?php foreach ($list AS $key => $v) { ?>
                                                                <tr>
                                                                   
                                                                    <td>{$v.id}</td>
                                                                    <td>{$v.sort}</td>
                                                                    <td>{$v.title}</td>
                                                                    <td>
                                                                    <a target="" class="btn btn-info btn-xs" href="{:url('admin/category/edit',['id'=>$v['id']])}">修改</a>
                                                                    <a target="" table="{:encode('category')}" where="{:encode('id-'.$v['id'])}" class="btn btn-danger btn-xs cmzdel" href="javascript:;" >删除</a>
                                                                    <!-- <a target="" class="btn btn-primary btn-xs" href="{:url('post/publish/question')}?id={$v.question_id}">修改</a> -->
                                                                    </td>
                                                                </tr>
                                                                <?php } ?>
                                                            </tbody>
                                                        </table>
                                                         <div class="pull-right">  </div>
                                                    <?php } ?>
                                                    </div>
                                                    </form>
                                                    <!-- <div class="mod-table-foot"> -->

                                                        <!-- <a class="btn btn-danger" >删除</a> -->
                                                    <!-- </div> -->
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                    </div>
                                </div>
                                
                            </div>  
                            <div style="clear:both;height:5px"></div> 
                            <div class="hr-line-dashed"></div>
                             
                             
                             <div style="clear:both;height:5px"></div>    
                    </div>
                </div>
            </div>

        </div>
    </div>
        
           
</div>
<div style="clear:both;"></div>
 <div>
     
  
    </div>


           
   </form>

{include file="admin/public/footer" /}